package mk.company.fin.main;

import java.io.IOException;

import javax.swing.SwingUtilities;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Main program
 * 
 * @author vlado.gjorgjiev
 */
public class MainClass {
	
	private static final Logger LOG = LoggerFactory.getLogger(MainClass.class);
	
	/**
	 * Main method
	 */
	public static void main(String[] args) throws IOException {
		SwingUtilities.invokeLater(new Runnable() {
			@Override
			public void run() {
				try {
					GuiApplication application = new GuiApplication();
					application.displayGui();
					
				} catch (RuntimeException e) {
					LOG.error("Application has crushed!", e);
				}
			}
		});
	}
		
}